package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.List;

/**
 * 孵化场地信息表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_incubators")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class IncubatorsModel {
    @TableId(type = IdType.AUTO)
    private Integer id;//孵化场地信息表id
    private String name;//创业孵化基地名称
    private Integer area;//创业孵化基地所在地区
    private String address;//创业孵化基地地址
    private String phone;//电话
    private Double longitude;//经度
    private Double latitude;//纬度
    private String fileId;//文件路径(图片)
    private String baseIntroduction;//基地介绍
    private String enterRule;//入孵条件
    private String enterDiscountRule;//入孵优惠条件


    @TableField(exist = false)
    private Double distance;
    @TableField(exist = false)
    private String areaText;//创业孵化基地所在地区文字

    @TableField(exist = false)
    private List<String> urlList;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;
}
